#include "trEvent.h"

tetra::trEvent::trEvent():
property_array(0),
parent_event_nodes(0),
trevent_type(0)
{

    alive =true;

    name ="trNullEvent";

};

tetra::trEvent::trEvent( trEventType* new_type, const irr::core::stringc& new_name ):
property_array(0),
parent_event_nodes(0),
trevent_type(new_type)
{

    alive =true;

    name =new_name;

};

tetra::trEvent::~trEvent()
{

};

tetra::trEventType* tetra::trEvent::getType() const
{

    return trevent_type;

};

tetra::trEventNodeArray* tetra::trEvent::getParentEventNodes()
{

    return parent_event_nodes;

};

/** @brief setName
  *
  * @todo: document this function
  */
void tetra::trEvent::setName( const irr::core::stringc& new_name )
{

    name= new_name;

};

/** @brief setType
  *
  * @todo: document this function
  */
void tetra::trEvent::setType( tetra::trEventType* new_type )
{

    trevent_type =new_type;

};

/** @brief setAlive
  *
  * @todo: document this function
  */
void tetra::trEvent::setAlive( bool new_state )
{

    alive = new_state;

};

/** @brief toggleAlive
  *
  * @todo: document this function
  */
void tetra::trEvent::toggleAlive()
{

    alive = !alive;

};
